package com.buddy.sds.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buddy.sds.auth.entity.SystemUser;

import java.util.List;

public interface ISystemUserService extends IService<SystemUser> {

    SystemUser loadByUsername(String username,boolean withRoleAndPermission);

    boolean usernameExists(String username);

    void deleteCascade(String userId);

    void updateUserRole(String userId, List<String> roleIdList);

    void updateUserPassword(String userId, String newPassword);

}
